<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="flowBox">
	<h6>
		<span>{$lang.consignee_info}</span>
	</h6>
	<table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
		<!-- 购物车中存在实体商品显示国家和地区 -->
		<if condition="$real_goods_count gt 0">	
			<tr>
				<td bgcolor="#ffffff">{$lang.country_province}:</td>
				<td colspan="3" bgcolor="#ffffff">
					<select name="country" id="selCountries_{$sn}" onchange="region.changed(this, 1, 'selProvinces_{$sn}')" style="border:1px solid #ccc;">
						<option value="0">{$lang.please_select}{$name_of_region[0]}</option>
						<volist name="country_list" id="country">
							<option value="{$country.region_id}" <if condition="$consignee['country'] eq $country['region_id']">selected</if> >
								{$country.region_name}
							</option>
						</volist>
					</select>
					<select name="province" id="selProvinces_{$sn}" onchange="region.changed(this, 2, 'selCities_{$sn}')" style="border:1px solid #ccc;">
						<option value="0">{$lang.please_select}{$name_of_region[1]}</option>
						<volist name="province_list[$sn]" id="province">
							<option value="{$province.region_id}" <if condition="$consignee['province'] eq $province['region_id']">selected</if> >
								{$province.region_name}
							</option>
						</volist>
					</select>
					<select name="city" id="selCities_{$sn}" onchange="region.changed(this, 3, 'selDistricts_{$sn}')" style="border:1px solid #ccc;">
						<option value="0">{$lang.please_select}{$name_of_region[2]}</option>
						<volist name="city_list[$sn]" id="city">
							<option value="{$city.region_id}" <if condition="$consignee['city'] eq $city['region_id']">selected</if> >
								{$city.region_name}
							</option>
						</volist>
					</select>
					<select name="district" id="selDistricts_{$sn}" <if condition="empty($district[$sn])">style="display:none"</if> style="border:1px solid #ccc;">
						<option value="0">{$lang.please_select}{$name_of_region[3]}</option>
						<volist name="district_list[$sn]" id="district">
							<option value="{$district.region_id}" <if condition="$consignee['district'] eq $district['region_id']">selected</if> >
								{$district.region_name}
							</option>
						</volist>
					</select>
					{$lang.require_field} 
				</td>
			</tr>
		</if>
		<tr>
			<td bgcolor="#ffffff">{$lang.consignee_name}:</td>
			<td bgcolor="#ffffff">
				<input name="consignee" type="text" class="inputBg" id="consignee_{$sn}" value="{$consignee.consignee}" />
				{$lang.require_field} 
			</td>
			<td bgcolor="#ffffff">{$lang.email_address}:</td>
			<td bgcolor="#ffffff">
				<input name="email" type="text" class="inputBg"  id="email_{$sn}" value="{$consignee.email}" />
				{$lang.require_field}
			</td>
		</tr>
		<!-- 购物车中存在实体商品显示详细地址以及邮政编码 -->
		<if condition="$real_goods_count gt 0">
		<tr>
			<td bgcolor="#ffffff">{$lang.detailed_address}:</td>
			<td bgcolor="#ffffff">
				<input name="address" type="text" class="inputBg"  id="address_{$sn}" value="{$consignee.address}" />
				{$lang.require_field}
			</td>
			<td bgcolor="#ffffff">{$lang.postalcode}:</td>
			<td bgcolor="#ffffff">
				<input name="zipcode" type="text" class="inputBg"  id="zipcode_{$sn}" value="{$consignee.zipcode}" />
			</td>
		</tr>
		</if>
		<tr>
			<td bgcolor="#ffffff">{$lang.phone}:</td>
			<td bgcolor="#ffffff">
				<input name="tel" type="text" class="inputBg"  id="tel_{$sn}" value="{$consignee.tel}" />
				{$lang.require_field}
			</td>
			<td bgcolor="#ffffff">{$lang.backup_phone}:</td>
			<td bgcolor="#ffffff"><input name="mobile" type="text" class="inputBg"  id="mobile_{$sn}" value="{$consignee.mobile}" /></td>
		</tr>
		<!-- 购物车中存在实体商品显示最佳送货时间及标志行建筑 -->
		<if condition="$real_goods_count gt 0">
		<tr>
			<td bgcolor="#ffffff">{$lang.sign_building}:</td>
			<td bgcolor="#ffffff"><input name="sign_building" type="text" class="inputBg"  id="sign_building_{$sn}" value="{$consignee.sign_building}" /></td>
			<td bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
			<td bgcolor="#ffffff"><input name="best_time" type="text"  class="inputBg" id="best_time_{$sn}" value="{$consignee.best_time}" /></td>
		</tr>
		</if>
		<tr>
			<td colspan="4" align="center" bgcolor="#ffffff">
				<input type="submit" name="Submit" class="bnt_blue_2" value="{$lang.shipping_address}" />			
				<!-- 如果登录了，显示删除按钮 -->
				<if condition="$Think.session.user_id gt 0 and $consignee['address_id'] gt 0">
					<input name="button" type="button" onclick="if (confirm('{$lang.drop_consignee_confirm}')) location.href='flow.php?step=drop_consignee&amp;id={$consignee.address_id}'"  class="bnt_blue" value="{$lang.drop}" />
				</if>
				<input type="hidden" name="step" value="consignee" />
				<input type="hidden" name="act" value="checkout" />
				<input name="address_id" type="hidden" value="{$consignee.address_id}" />
			</td>
		</tr>
	</table>
</div>